package com.xingshang.mapper;

import com.xingshang.model.po.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Insert;

/**
 * @author 87547
 * @description 针对表【wn_user】的数据库操作Mapper
 * @createDate 2025-04-01 08:37:17
 * @Entity com.xingshang.model.po.User
 */
public interface UserMapper extends BaseMapper<User> {

    public User getUserByAccount(String account);

    @Insert("insert into wn_user(account,password,email,telphone,points,money,avatar,reg_time,status,last_login_time,last_login_ip) values(#{account},#{password},#{email},#{telphone},#{points},#{money},#{avatar},#{regTime},#{status},#{lastLoginTime},#{lastLoginIp})")
    public int insertUser(User user);
}




